//
//  FirstVc.m
//  F FloatingPlayer
//
//  Created by yonas on 2018/9/26.
//  Copyright © 2018年 Inspur. All rights reserved.
//

#import "FirstVc.h"
#import "SecondVc.h"
#import "UITabBarController+FloatingTabbarExtension.h"
@interface FirstVc ()

@end

@implementation FirstVc

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.title = [NSString stringWithFormat:@"%d",arc4random()%100];
    
    UIImageView *imageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"2.jpg"]];
    imageView.frame = CGRectMake(0, 64, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height);
    [self.view addSubview:imageView];
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    [self.tabBarController hideFloatingView];
    SecondVc *vc = [[SecondVc alloc]init];
    [self.navigationController pushViewController:vc animated:YES];
}
@end
